package com.unexpection;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        System.out.println("Please input your name");
        Scanner inputGeter = new Scanner(System.in);
        try {
            var in = inputGeter.nextLine(); // 假设用户可以输入任何内容
            System.out.println(in instanceof String);
            if(!(in instanceof String)) {

            }else {
                throw new InputException();
            }
        }catch(InputException error) {
            System.out.println(error.cue);
        }

    }
}
